package com.loren.demo13.data_permission;

import java.util.Random;

public enum DataScope {

    SELF,

    DEPT,

    ALL;

    public static DataScope getRandomDataScope() {
        DataScope[] values = DataScope.values();
        int index = new Random().nextInt(values.length);
        return values[index];
    }
}
